package com.shop.entity;

import java.util.Objects;

public class Show {
    private int g_id;
    private String g_name;
    private double gd_price;
    private String img_path;

    public int getG_id() {
        return g_id;
    }

    public void setG_id(int g_id) {
        this.g_id = g_id;
    }

    public String getG_name() {
        return g_name;
    }

    public void setG_name(String g_name) {
        this.g_name = g_name;
    }

    public double getGd_price() {
        return gd_price;
    }

    public void setGd_price(double gd_price) {
        this.gd_price = gd_price;
    }

    public String getImg_path() {
        return img_path;
    }

    public void setImg_path(String img_path) {
        this.img_path = img_path;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Show show = (Show) o;
        return g_id == show.g_id &&
                Double.compare(show.gd_price, gd_price) == 0 &&
                Objects.equals(g_name, show.g_name) &&
                Objects.equals(img_path, show.img_path);
    }

    @Override
    public int hashCode() {
        return Objects.hash(g_id, g_name, gd_price, img_path);
    }

    @Override
    public String toString() {
        return "Show{" +
                "g_id=" + g_id +
                ", g_name='" + g_name + '\'' +
                ", gd_price=" + gd_price +
                ", img_path='" + img_path + '\'' +
                '}';
    }

    public Show(int g_id, String g_name, double gd_price, String img_path) {
        this.g_id = g_id;
        this.g_name = g_name;
        this.gd_price = gd_price;
        this.img_path = img_path;
    }

    public Show() {
    }
}
